import { Suspense } from 'react';

import Layout from '@/layout';

import RouterLoading from './RouterLoading';

export default function AuthGuard() {
	return (
		<Suspense fallback={<RouterLoading />}>
			<Layout />
		</Suspense>
	);
}
